package com.yuki.fwwb.Service;

import com.yuki.fwwb.DAO.ClusterDao;
import com.yuki.fwwb.DAO.TripsDAO;
import com.yuki.fwwb.Entity.Cluster;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TripsService {
    @Autowired
    TripsDAO dao;

    @Autowired
    ClusterDao clusterDao;
    public List<Map> findMonthSum(){
        return dao.findMonthSum();
    };
    public List<Map> findChannelNumberSum(){
        return dao.findChannelNumberSum();
    };
    public List<Map> findByWeekOfMonth(int month){
        return dao.findByWeekOfMonth(month);
    };
    public List<Map> findByWeekAll(int week){
        return dao.findByWeekAll(week);
    };
    public List<Map> findByWeek(int week){
        return dao.findByWeek(week);
    };
    public List<Map> findByMonthDay(int month){
        return dao.findByMonthDay(month);
    };
    public List<Map> findByOneDayAllStationInOutOfMonth(int month, String day){
        return dao.findByOneDayAllStationInOutOfMonth(month,day);
    };
    public List<Map> findByOneMonthAllStationInOut(int month){
        return dao.findByOneMonthAllStationInOut(month);
    };

    public List<Map> findByOneDayStationInOutOfMonth(int month, String day,String station){
        return dao.findByOneDayStationInOutOfMonth(month,day,station);
    };

    public List<Map> findByOneMonthStationInOut(int month,String station){
        return dao.findByOneMonthStationInOut(month,station);
    };

    public List<Cluster> Cluster1() {
        return clusterDao.Cluster1();
    }


}
